#coding:utf-8

import tornado.web
from model.entity import Entity

class MainHandler(tornado.web.RequestHandler):
    def get(self):
        entity = Entity.get('Surface Check Server')
        self.render('index.html', entity = entity)

class DataHandler(tornado.web.RequestHandler):
    def get(self):
        entity = Entity.get('Surface Check Server')
        self.render('data', entity = entity)

class HealthHandler(tornado.web.RequestHandler):
    def get(self):
        self.set_header("content-type", "application/json")
        self.render('health')

class TestHandler(tornado.web.RequestHandler):
    def get(self):
        self.set_header("content-type", "application/json")
        self.render('test')
